﻿Public Partial Class Questions
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    ''' <summary>
    ''' Display link to view question image
    ''' </summary>
    ''' <param name="inm"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Public Function ViewImage(ByVal inm) As String
        Dim retVal As String
        retVal = String.Empty

        If inm Is DBNull.Value Then
            retVal = String.Empty
        Else
            retVal = "<a href=""javascript:void(0);"" onclick=""window.open('../images/quizzes/full/" & inm & "','_blank','width=500,height=600,menubar=0,location=0,resizable=0,scrollbars=0');"">view</a>"
        End If

        Return retVal
    End Function
End Class